A Situation Calculus Semantics for the Prolog Cut Operator 1

نویسنده

  • Fangzhen Lin
چکیده

Given a deenite logic program with cut, we proceed in two steps to give it a semantics. First, we delete cut from the program, and construct the basic action theory for the resulting cut-free program in the situation calculus according to (Lin and Reiter 3]). We then formalize the eeects of cut by adding to the basic action theory a situation calculus sentence that characterizes the set of situations (derivations) that are not eliminated by cut. We show that our semantics is well-behaved when the logic program is properly stratiied. We also show that according to this semantics, the usual implementation of the negation-as-failure operator using cut is prov-ably correct. Abstract. Given a deenite logic program with cut, we proceed in two steps to give it a semantics. First, we delete cut from the program, and construct the basic action theory for the resulting cut-free program in the situation calculus according to (Lin and Reiter 3]). We then formalize the eeects of cut by adding to the basic action theory a situation calculus sentence that characterizes the set of situations (derivations) that are not eliminated by cut. We show that our semantics is well-behaved when the logic program is properly stratiied. We also show that according to this semantics, the usual implementation of the negation-as-failure operator using cut is prov-ably correct.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Applications of the Situation Calculus To Formalizing Control and Strategy Information: The Prolog Cut Operator

We argue that the situation calculus is a natural formalism for representing and reasoning about control and strategic information. As a case study, in this paper we provide a situation calculus semantics for the Prolog cut operator, the central search control operator in Prolog. We show that our semantics is well-behaved when the programs are properly stratif ied. We also show that according t...

متن کامل

Applications of the Situation Calculus to Formalizing Control and Strategic Information: the Prolog Cut Operator

We argue that the situation calculus is a natural formalism for representing and reasoning about control and strategic information. As a case study, in this paper we provide a situation calculus semantics for the Prolog cut operator, the central search control operator in Prolog. We show that our semantics is well-behaved when the programs are properly stratiied. We also show that according to ...

متن کامل

A Declarative Semantics for the Prolog Cut Operator

In practice, a large part of most Prolog programs is in fact functional, the search facilities of Prolog are only rarely needed. In order to arrive at efficient implementations it is then convenient to make use of the cut operator provided by Prolog. Up to now, this operator has been regarded as an extra–logical control operator that destroys the declarative semantics of Prolog. In this paper w...

متن کامل

Augmented Prolog | an Evolutionary Approach

Prolog has been marketed as a declarative programming language. In practical programming, however, this pretension is seldom justiied. There are many reasons for the gap between the theory of logic programming and the practice of Prolog, the most important being the lack of a type system and the fact that the hitherto developed declarative semantics for Prolog makes no attempt to capture the me...

متن کامل

We Present an Operational Model O and a Continuation Based Denotational Model D for a Section 1 Introduction

uniform variant of Prolog, including the cut operator. The two semantical definitions make use of higher order transformations Φ and Ψ, respectively. We prove O and D equivalent in a novel way by comparing yet another pair of higher order transformations Φ ˜ and Ψ ˜ , that yield Φ and Ψ, respectively , by application of a suitable abstraction operator. In [BV] we presented both an operational a...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1995